package com.rockcent.mall.lib.repository;

import com.rockcent.common.domain.enumclass.Whether;
import com.rockcent.mall.lib.domain.MallMemberPayStandard;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * Created by DK on 17/3/7.
 */
@Repository
public interface MallMemberPayStandardRepository extends JpaRepository<MallMemberPayStandard, Long>, JpaSpecificationExecutor, MallMemberPayStandardRepositoryCustom {
    MallMemberPayStandard findByMallId(Long mallId);

    MallMemberPayStandard findByMallIdAndIsDelete(Long mallId, Whether no);

    MallMemberPayStandard findByMallIdAndMallMemberIdAndIsDelete(Long mallId, Long mallMemberId, Whether no);

    MallMemberPayStandard findByIdAndIsDelete(Long id, Whether no);
}
